fix(sandbox): refresh docker/podman/vm tokens in gateway#1639
fix(sandbox): refresh docker/podman/vm tokens in gateway#1639TaylorMutch wants to merge 2 commits into
Conversation
|
Label |
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
df3f0bc to
7afe767
Compare
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
|
@TaylorMutch In the process of asking my coding agent questions to wrap my head around some of the implementation details here, I stumbled on the following potential issue where a silent failure can occur in the VM token rotation:
|
Yup, this is exactly where I've gotten hung up on this PR and haven't made much progress since I first posted it. The VM implementation in particular has been tricky, and I am definitely open to ideas here. |
|
@TaylorMutch I think the main question I have is, is the expectation that the microvm ComputeDriver be a single-host single-player ComputeDriver option similar to podman and docker? If so, we should be able to make certain assumptions that can make this easier to reason with. Effectively my pitch would be to toss the entire gateway managed file approach and instead use |
Summary
Fix sandbox token recovery for singleplayer runtimes by making Docker, Podman, and VM token refresh gateway-managed, with an explicit supervisor auth mode contract for each backend. Kubernetes remains on ServiceAccount exchange instead of gateway-managed token files.
Related Issue
Closes #1603
Changes
OPENSHELL_SANDBOX_AUTH_MODEvalues for static, gateway-managed file, gateway-managed supervisor-push, and Kubernetes ServiceAccount exchange pathsTesting
mise run pre-commitpassesmkfs.ext4/e2fsprogsprerequisite on this machineChecklist